<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .red {
      color: red;
    }

    .green {
      color: green;
    }
  </style>
  <script src="https://unpkg.com/vue@next"></script>
</head>

<body>
  <div id="root"></div>
  <script>
    const app = Vue.createApp({
      data() {
        return {
          classString: 'red',
          classObject: {
            red: false,
            green: true
          },
          classArray: ['red', 'green', {
            brown: false
          }],
          styleString: 'color: yellow;background: orange',
          styleObject: {
            color: 'orange',
            background: 'yellow'
          }
        }
      },
      template: `
        <div :class="classString">hello word</div>
        <div :class="classObject">hello word</div>
        <div :class="classArray">hello word</div>
        <div :style="styleString">hello word</div>
        <div :style="styleObject">hello word</div>
      `
    })
    const vm = app.mount('#root');
  </script>
</body>

</html>